package main

import "fmt"

type Student struct {
	name   string
	age    int
	scores [5]float64
	ptr    *int
	slice  []int
	map1   map[string]string
}

func main() {
	//定义结果体
	var stu Student
	var stu2 Student
	fmt.Println(stu)

	stu.slice = make([]int, 10)
	stu.map1 = make(map[string]string)

	num := 1
	stu.ptr = &num

	if stu.ptr == nil {
		fmt.Println("ok1")
	}
	if stu.slice == nil {
		fmt.Println("ok2")
	}
	if stu.map1 == nil {
		fmt.Println("ok3")
	}
	fmt.Println(stu)
	fmt.Println(stu2)
}
